import { track,trigger } from "./effect.js";
export const handler = {
    get(target,propertyKey,value,recieve){
      // 依赖收集 
      track(target,propertyKey)
      return Reflect.get(target,propertyKey,value,recieve)
    },
    set(){
      // 派发更新
      trigger(target,propertyKey)
      return Reflect.set(target,propertyKey,value,recieve)
    }
  }